home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Telnet 2.6.1d1 4⁄26⁄94 Folder / source / resrcdefs.h < prev    next >
C/C++ Source or Header  |  1994-03-21  |  14KB  |  332 lines

  1. /*    Resource Defines */
  2.  
  3. static ResType    creator         = 'NCSA';    /* Creator signature for "saved set" files */
  4. static ResType    filetype         = 'CONF';    /* Filetype for "saved set" files */
  5.  
  6. /* ----------------- Defines for translation routines -------------------------------*/
  7. #define    MY_TRSL                'TRSL'    /* resource type for translation */
  8. #define    TRSL_DEFAULT_TABLE    256        /* The default table */
  9. #define    TRSL_FTP_TABLE        257        /* The MAC->ISO, ISO->MAC table for FTP */
  10.  
  11. #define    USER_TRSL    'taBL'    /* User translation tables resource type */
  12.                             /* 256 bytes of in table followed by 256 bytes of out table */
  13.                             
  14. #define GetStrRes(x)    (Str255 **)GetResource('STR ',(x));        /* Get string resource */
  15.  
  16. /*================================================================================*/
  17. /* Defines for the Menu related resources */
  18.  
  19. #define    NMENUS    11            /*    We have NMENUS menus right now */
  20.  
  21. #define    appleMenu    1        /*    Apple Menu ID */
  22. #define    NfileMenu    512        /*    File Menu Resource ID */
  23. #define    NeditMenu    513        /*    Edit Menu Resource ID */
  24. #define NtermMenu    514        /*    Emulation Menu Resource ID */
  25. #define    NconnMenu    515        /*    Connection Menu Resource ID */
  26. #define NnetMenu    516        /*    Network Menu Resource ID */
  27.  
  28. #define    fileMenu    256        /*    File Menu ID */
  29. #define    editMenu    257        /*    Edit Menu ID */
  30. #define termMenu    258        /*    Emulation Menu ID */
  31. #define    connMenu    259        /*    Connection Menu ID */
  32. #define netMenu        260        /*    Network Menu Resource ID */
  33. #define fontMenu    128        /*  Font Menu Resource ID */
  34. #define sizeMenu    129        /*    Size Menu Resource ID */
  35. #define opspecMenu    130        /*    Open Special Sub-Menu Resource ID */
  36. #define prefsMenu    131        /*    Preferences Sub-Menu Resource ID */
  37. #define    transMenu    132        /*    Translation Sub-Menu Resource ID */
  38.  
  39. #define    Fil            1        /*    File Menu's Position */
  40. #define Edit        2        /*  Edit Menu's Position */
  41. #define    Emul        3        /*    Emulation Menu's position */
  42. #define Net            4        /*    Network Menu's position */
  43. #define Conn        5        /*    Connection Menu's position */
  44. #define Font        6        /*    Font Menu's position */
  45. #define Sizem        7        /*  Size Menu's position */
  46. #define OpSpec        8        /*    Open Special Sub-Menu's position */
  47. #define PrefsSub    9        /*    Preferences Sub-Menu position */
  48. #define    National    10        /*    Translation Sub-Menu's postition */
  49.  
  50. /* ----------------- The File Menu ---------------------- */
  51. #define FLopen        1        /* File Menu: Open Connection */
  52. #define FLopenspec    2        /* File Menu: Open Special */
  53. #define    FLclose        3        /* File Menu: Close Connection */
  54. #define    FLload        5        /* File Menu: Load Set */
  55. #define    FLsave        6        /* File Menu: Save Set */
  56. #define FLbin        8        /* File Menu: MacBinary on */
  57. #define FLlog        10        /* File Menu: ftp log on */
  58. #define FLprint        12        /* File Menu: Print Selection */
  59. #define FLpset        13        /* File Menu: Page Setup */
  60. #define FLquit        15        /* File Menu: Quit */
  61.  
  62. /* ----------------- The Edit Menu ---------------------- */
  63. #define    EDundo        1
  64. #define EDcut        3
  65. #define EDcopy        4        /* Edit Menu: Copy */
  66. #define EDpaste        5        /* Edit Menu: Paste */
  67. #define EDclear        6        /* Edit Menu: Clear */
  68. #define EDcopyt        7        /* Edit Menu: Copy Table */
  69. #define EDmacros    9        /* Edit Menu: Macros */
  70. #define EDprefs        10        /* Edit Menu: Preferences */
  71.  
  72. /* ----------------- The Session Menu ---------------------- */
  73. #define EMbs        1        /* Emulation Menu: backspace */
  74. #define EMdel        2        /* Emulation Menu: delete */
  75. #define EMecho        4        /* Emulation Menu: echo */
  76. #define EMwrap      5       /* Emulation Menu: Wrap mode on/off */
  77. #define EMarrowmap    6        /* JMB - Emulation Menu: Turn EMACS mapping off/on */
  78. #define EMpgupdwn    7        /* JMB - Emulation Menu: Turn local PgUp/PgDwn/etc. on/off */
  79. #define EMnational    8        /* LU */
  80. #define EMscroll    9        /* Emulation Menu: Clear Screen Saves Lines */
  81. #define EMreset     10        /* Emulation Menu: Reset Terminal */
  82. #define EMjump        11        /* Emulation Menu: Jump Scroll */
  83. #define EMpage        12        /* Emulation Menu: TEK Page command */
  84. #define EMclear        13        /* BYU 2.4.8 - Emulation Menu: TEK Page clears screen */
  85. #define EMscreensize 15        /* NCSA: SB - new screen dimensions dialog */
  86. #define EMsetup     17      /* BYU 2.4.8 - Emulation Menu: Setup keys */
  87. #define EMfont        18        /* BYU 2.4.8 - Emulation Menu: Font */
  88. #define EMsize        19        /* BYU 2.4.8 - Emulation Menu: Size */
  89. #define EMcolor        20        /* BYU 2.4.8 - Emulation Menu: Color */
  90. #define EMcapture    22        /* BYU 2.4.18 - Emulation Menu: Capture to file */
  91.  
  92. /* ----------------- The Network Menu ---------------------- */
  93. /* #define NEcommand    19    Emulation Menu: Command Keys */
  94. #define    NEftp        1        /* Emulation Menu: Send ftp command */
  95. #define    NEip        2        /* Emulation Menu: Send IP # */
  96. #define NEayt        4        /* Emulation Menu: Send "Are You There" */
  97. #define NEao        5        /* Emulation Menu: Send "Abort Output" */
  98. #define NEinter        6        /* Emulation Menu: Send "Interrupt Process" */
  99. #define NEec        7        /* Emulation Menu: Send "Erase Character" */
  100. #define NEel        8        /* Emulation Menu: Send "Erase Line" */
  101. #define NEscroll    10        /* Network Menu: Scroll Lock */
  102. #define NEnet        12        /* Network Menu: Show Net #'s */
  103.  
  104. /* ----------------- The Connection Menu ---------------------- */
  105. #define COnext            1    /* Connection Menu: Next Session... */
  106. #define    COtitle            2    /* Change window title */
  107. #define    FIRST_CNXN_ITEM    4    /* The first slot for connections in the menu */
  108. /* ----------------- The Preferences Menu --------------------- */
  109. #define    prfGlobal    1
  110. #define    prfTerm        2
  111. #define    prfSess        3
  112. #define    prfFTP        4
  113. #define prfFTPUser    5
  114. /*================================================================================*/
  115. /*    Cursor resource related defines */
  116.  
  117. #define    rPOSCURS        256
  118. #define rBeamCursor        1
  119. #define rCrossCursor     2
  120. #define rPlusCursor      3
  121. #define rWatchCursor      4
  122. #define    rGINCURS        257
  123. #define    rDbugCURS        268
  124. #define    rXferCURS        290
  125. #define leftcrsr        130        /* cursors to display encryption state */
  126. #define rightcrsr        129        /* cursors to display encryption state */
  127. #define lockcrsr        131        /* cursors to display encryption state */
  128. /*================================================================================*/
  129. /*    WIND resources for remembering the position of our windows */
  130. #define    FTPlogWIND    257
  131.  
  132. /*================================================================================*/
  133. /* String resource related #defines */
  134. #define SAVE_SET_STRINGS_ID        23239        /* NCSA Telnet-save-set keywords */
  135. #define SAVE_SET_STRINGS_COUNT     40
  136. #define AFF_WORDS_ID            23240        /* NCSA save-set file, affirmatives */
  137. #define AFF_WORDS_COUNT            13
  138. #define MSG_RESOURCE_ID         23227        /* ftp strings of interest */
  139.  
  140. #define NETERROR_RESOURCE_ID     23250        /* network errors */
  141. #define NETERROR_RESOURCE_COUNT 17            /* number of network errors */
  142. #define MEMERROR_RESOURCE_ID     23251        /* memory errors */
  143. #define MEMERROR_RESOURCE_COUNT 7            
  144. #define RESERROR_RESOURCE_ID     23253        /* resource errors */
  145. #define RESERROR_RESOURCE_COUNT 7    
  146.         
  147. #define    GENERAL_MESSAGES_ID        2000        // Misc. messages
  148. #define    PREFERENCES_PROBLEM        1            // Problem w/Prefs, should I attempt fix?
  149. #define RESOURCE_PROBLEM        2            // Vital resource missing from Telnet
  150. #define    NUKED_PREFS                3            // Unable to repair the prefs file
  151. #define    PREFS_ARE_NEWER_ID        4            // Prefs on disk are newer than those in memory
  152. #define    CANT_OPEN_MACTCP        5            // Error occured after OpenDriver("\p.IPP");
  153. #define REALLY_QUIT_QUESTION    6            // Really quit w/open connections?
  154. #define    CANT_CREATE_PREFS        7            // Error creating prefs file
  155. #define    NEED_HFS_ERR            8            // Telnet requires HFS
  156. #define    SYS_ENVIRON_ERR            9            // Wrong SysEnvirons version
  157. #define    SYSTEM_VERS_ERR            10            // Telnet requires at least System 6.0
  158. #define    ROM_VERS_ERR            11            // Telnet requires at least 128k ROMS
  159. #define    AE_PROBLEM_ERR            12            // Problem installing AppleEvent handlers
  160.  
  161. #define    OPFAILED_MESSAGES_ID    2001        // General messages when an operation fails
  162. #define    CANT_CREATE_FILE        1            // Can't create a file for some reason
  163. #define    CANT_OPEN_FILE            2            // Can't open a file
  164. #define    OUT_OF_MEMORY            3            // Not enough memory
  165. #define    BAD_SET_ERR                4            // Invalid keyword in set file
  166.  
  167. #define    MISC_STRINGS            2002        // Misc. internal strings
  168. #define    CAPTFILENAME            1            // Name of default capture file
  169. #define    MISC_NEWSESSION            2            // Default name for new session
  170. #define    MISC_NEWTERM            3            // Default name for new terminal
  171.  
  172. #define    DNR_MESSAGES_ID            2004        // DNR error messages
  173.  
  174. /*================================================================================*/
  175. /*    #defines for ALRT and DITL resources */
  176.  
  177. #define    MemoryLowAlert    200    // Preloaded, unpurgable alert to tell the user memory is tight
  178.  
  179. /*    #defines for the DLOG and DITL resources */
  180.  
  181. #define    DLOGOk        1
  182. #define DLOGCancel    2
  183.  
  184. #define RESOLVERERROR    128
  185.  
  186. #define    kItemDLOG    150
  187. #define    kRemove        2
  188. #define    kChange        3
  189. #define    kNew        4
  190. #define    kItemList    5
  191.  
  192. #define    FATALCANCEL_ID    160        // Fatal Cancel Alert
  193. #define    FATAL_ID        170        // Fatal Alert
  194. #define OPFAILED_ID        175        // Operation Failed Alert
  195. #define    ASKUSER_ID        180        // Ask user an OK/CANCEL question ALERT
  196.  
  197. #define    WinTitlDLOG        190        // Change window title DLOG
  198. #define    kWinNameTE        3        // Window Name TextEdit
  199.  
  200. #define    DNRErrorDLOG    195        // DNR error occurred.
  201.  
  202. #define    MyIPDLOG        259
  203.  
  204. #define    StatusDLOG        270        // "Machine" is currently being "opened/looked up"
  205.  
  206. #define SetupDLOG        273        /*  Setup keys interface */
  207. #define killbox            4
  208. #define stopbox            5
  209. #define startbox        6
  210.  
  211. #define    NewCnxnDLOG        280
  212. #define    NCconnect        1
  213. #define    NCcancel        2
  214. #define    NChostname        4
  215. #define    NCwindowname    6
  216. #define    NCftpcheckbox    7
  217. #define    NCsesspopup        8
  218. #define NCauthenticate    9
  219. #define NCencrypt        10
  220.  
  221. #define    ConnFalDLOG        303
  222. #define MacroDLOG        500        /* The Macros dialog */
  223. #define    AboutDLOG        501
  224. #define OopsDLOG        640
  225. #define    FirstDLOG        1023
  226.  
  227. #define    ColorDLOG        1001    /* Connection color selection dialog */
  228. #define    ColorNF            3
  229. #define    ColorNB            4
  230. #define    ColorBF            5
  231. #define    ColorBB            6
  232.  
  233. #define    CloseDLOG        2001    /* The Close Confirmation Dialog */
  234.  
  235. #define WDSET_DLOG        4001
  236.  
  237. #define    SizeDLOG        5500    /* The number of lines config dialog ----------- */
  238. #define    ColumnsNumber    4        /* NCSA: SB - User given # of columns */
  239. #define    LinesNumber        6        /* User given # of lines */
  240.  
  241. #define    PrefDLOG    7001            /* The Preferences Dialog        ---------------- */
  242. #define PrefDClose                3    /* Don't close the window on "Close" */
  243. #define PrefStag                4    /* Staggered Windows? */
  244. #define PrefCMDkey                5    /* Command keys */
  245. #define PrefTMap                6    /* Shall we map the tilde? */
  246. #define PrefBlink               7    /* Blink the cursor? */
  247. #define PrefBlockCursor           8    /* Display a block cursor? */
  248. #define PrefUnderscoreCursor    9    /* Display an underscore cursor? */
  249. #define PrefVerticalCursor        10    /* Display a vertical line cursor? */
  250. #define PrefCTt                    13    /* Copy table threshold */
  251. #define PrefTimeSlice            14    /* Multifinder Time Slice TxtEdit */
  252. #define PrefCaptCreat            15    /* Capture File Creator Button */
  253. #define    PrefCaptTE                17    /* Capture File Creator TE */
  254.  
  255. #define FTPDLOG        7002            /* The FTP config Dialog        ---------------- */
  256. #define    FTPServerOff            3    /* FTP server off button */
  257. #define FTPServerUnsecure        4    /* FTP server ON Unsecure button */
  258. #define FTPServerPswdPlease        5    /* FTP server Passwords Required */
  259. #define FTPShowFTPlog            6    /* FTP show FTP log on startup */
  260. #define FTPrevDNS                7    /* FTP reverse DNS IP of connection hosts */
  261. #define FTPUseMacBinaryII        8    /* FTP Use Macbinary II */
  262. #define FTPResetMacBinary        9    /* FTP Reset Macbinary after each ftp */
  263. #define FTPISO                    10    /* FTP ISO checkbox */
  264. #define FTPbintypeTE            11    /* FTP binary filetype TextEdit */
  265. #define FTPbincreatTE            12    /* FTP binary creator type TextEdit */
  266. #define FTPbinexamplebutton        13    /* FTP binary example file selection button */
  267. #define FTPtextcreatTE            14    /* FTP text creator type TextEdit */ 
  268. #define FTPtextcreatorbutton    15    /* FTP TEXT file creator selection button */
  269.  
  270. #define TermDLOG    7003            /* The Terminal Config Dialog    ---------------- */
  271. #define TermANSI                3    /* ANSI escape sequences checkbox */
  272. #define TermXterm                4    /* Xterm escape sequences checkbox */
  273. #define Termvtwrap                5    /* Use vtwrap mode checkbox*/
  274. #define Termmeta                6    /* Use emacs meta key checkbox */
  275. #define Termarrow                7    /* Use emacs arrow keys checkbox */
  276. #define TermMAT                    8    /* Map pgup, etc. checkbox */
  277. #define Termeightbit            9    /* Eight bit connection */
  278. #define Termclearsave            10    /* Clear screen saves lines */
  279. #define TermVT100                11    /* VT-100 emulation radio button */
  280. #define TermVT220                12    /* VT-220 emulation radio button */
  281. #define TermName                13    /* Terminal configuration name TE */
  282. #define TermWidth                14    /* Terminal width TE */
  283. #define TermHeight                15    /* Terminal height TE */
  284. #define TermFontSize            16    /* Font size TE */
  285. #define TermScrollback            17    /* Scrollback TE */
  286. #define TermAnswerback            18    /* Answerback TE */
  287. #define TermNFcolor                19    /* NF color user item */
  288. #define TermNBcolor                20    /* NB color user item */
  289. #define TermBFcolor                21    /* BF color user item */
  290. #define TermBBcolor                22    /* BB color user item */
  291. //#define TermUFcolor                23    /* UF color user item */
  292. //#define TermUBcolor                24    /* UB color user item */
  293. #define    TermFontPopup            23    /* Font menu popup item */
  294. #define    TermNameStatText        24
  295. #define    TermSafeItem            24
  296.  
  297. #define SessionConfigDLOG    7004    /* The Session Config Dialog    ---------------- */
  298. #define    SessTEKinhib            3    /* Inhibit TEK radio button */
  299. #define SessTEK4014                4    /* TEK 4014 radio button */
  300. #define    SessTEK4105                5    /* TEK 4105 radio button */
  301. #define    SessPasteQuick            6
  302. #define    SessPasteBlock            7
  303. #define    SessDeleteDel            8
  304. #define    SessDeleteBS            9
  305. #define    SessForceSave            10
  306. #define    SessBezerkeley            11
  307. #define    SessLinemode            12
  308. #define    SessTEKclear            13
  309. #define    SessHalfDuplex            14
  310. #define    SessLowLevelErrs        15
  311. #define SessAuthenticate        16
  312. #define SessEncrypt                17
  313. #define    SessLocalEcho            18
  314. #define SessAlias                19
  315. #define    SessHostName            20
  316. #define SessPort                21
  317. #define    SessBlockSize            22
  318. #define    SessInterrupt            23
  319. #define    SessSuspend                24
  320. #define    SessResume                25
  321. #define    SessTermPopup            26
  322. #define    SessTransTablePopup        27
  323. #define    SessAliasStatText        29
  324. #define    SessSafeItem            28
  325.  
  326. #define FTPUserDLOG            7005    /* The FTP User Config Dialog   ---------------- */
  327. #define    FTPUcanchangeCWD        3    /* User can change WD checkbox */
  328. #define FTPUusername            4    /* Username TE */
  329. #define FTPUpassword            5    /* User's password */
  330. #define    FTPUDfltDirDsply        6    /* User's default dir path display */
  331. #define    FTPUDfltDirButton        7    /* Button to change user's default dir */
  332.